package com.kaigejava.juc.toolsdemo.countdowlatchdemo;

import lombok.Data;

/**
 * @author kaigejava
 * 模拟火箭发射前各个部门的线程
 */
@Data
public class RocketDepartmentThread implements Runnable {

    /**
     * 部门名称
     */
    private String departmentName;
    @Override
    public void run() {
        System.out.println("报告总控室,部门:"+getDepartmentName()+",准备就绪。");
    }

    public  RocketDepartmentThread (){}

    public  RocketDepartmentThread(String departmentName){
        this.departmentName = departmentName;
    }
}
